400 |
Can I change the format of date to be shown in the control
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Default"); Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Format.1"); var_Column->ComputedField = L"%0"; var_Column->FormatColumn = L"dateF(value) replace `/` with `-`"; Exlistlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Format.2"); var_Column1->ComputedField = L"%0"; var_Column1->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1)); var_Column1->FormatColumn = L"`<b>`+ shortdate(value) + `</b> ` + timeF(value)"; Exlistlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"Format.3"); var_Column2->ComputedField = L"%0"; var_Column2->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1)); var_Column2->FormatColumn = TVariant(String("( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `") + "Fr`; 6 : `Sa`) )"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->Add(TVariant(TDateTime(2001,1,2,10,00,00,0).operator double())); |
399 |
How can I put a picture on the cell's background (method 3)
List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); List1->VisualAppearance->Add(2,TVariant("CP:1 0 0 -164 0")); Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"column"); Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"column"); var_Column->Alignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment; var_Column->HeaderAlignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long i = var_Items->Add(TNoParam()); var_Items->set_SelectableItem(i,false); var_Items->set_Caption(i,TVariant(1),TVariant("caption")); var_Items->set_CellBackColor(i,TVariant(1),0x2000000); |
398 |
How can I put a picture on the cell's background (method 2)
List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"column"); var_Columns->Add(L"column"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long i = var_Items->Add(TNoParam()); var_Items->set_SelectableItem(i,false); var_Items->set_Caption(i,TVariant(1),TVariant("caption")); var_Items->set_CellBackColor(i,TVariant(1),0x1000000); var_Items->set_CellPicture(i,TVariant(1),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)")); var_Items->set_CellPictureWidth(i,TVariant(1),128); var_Items->set_CellPictureHeight(i,TVariant(1),List1->DefaultItemHeight); |
397 |
How can I put a picture on the cell's background (method 1)
List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"column"); Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"column"); var_Column->Alignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment; var_Column->HeaderAlignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long i = var_Items->Add(TNoParam()); var_Items->set_SelectableItem(i,false); var_Items->set_Caption(i,TVariant(1),TVariant("caption")); var_Items->set_CellBackColor(i,TVariant(1),0x1000000); |
396 |
How do I access the cells, or how do I get the values in the columns
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"C1"); var_Columns->Add(L"C2"); var_Columns->Add(L"C3"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h = var_Items->Add(TVariant("Item 1")); var_Items->set_Caption(h,TVariant(1),TVariant("SubItem 1.1")); var_Items->set_Caption(h,TVariant(2),TVariant("SubItem 1.2")); OutputDebugString( PChar(var_Items->get_Caption(h,TVariant(2))) ); |
395 |
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)
List1->BeginUpdate(); Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TVariant("K1")); var_ConditionalFormat->BackColor = RGB(255,0,0); var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1); Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat1 = List1->ConditionalFormats->Add(L"1",TVariant("K2")); var_ConditionalFormat1->BackColor = RGB(255,0,0); var_ConditionalFormat1->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x2); List1->MarkSearchColumn = false; List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum(0xfffffffc | Exlistlib_tlb::GridLinesEnum::exVLines); Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Column 1"); var_Columns->Add(L"Column 2"); var_Columns->Add(L"Column 3"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TNoParam()); var_Items->Add(TNoParam()); var_Items->Add(TNoParam()); List1->EndUpdate(); |
394 |
How can I get the list of items as they are displayed
List1->BeginUpdate(); List1->BackColorAlternate = RGB(240,240,240); List1->Columns->Add(L"Names"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Mantel")); var_Items->Add(TVariant("Mechanik")); var_Items->Add(TVariant("Motor")); var_Items->Add(TVariant("Murks")); var_Items->Add(TVariant("Märchen")); var_Items->Add(TVariant("Möhren")); var_Items->Add(TVariant("Mühle")); List1->Columns->get_Item(TVariant(0))->SortOrder = Exlistlib_tlb::SortOrderEnum::SortAscending; List1->EndUpdate(); OutputDebugString( PChar(List1->GetItems(TVariant(1))) ); |
393 |
Is posible to reduce the size of the picture to be shown in the column's caption
List1->BeginUpdate(); List1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); List1->HeaderHeight = 48; List1->Columns->Add(L"DefaultSize")->HTMLCaption = L"Default-Size <img>pic1</img> Picture"; List1->Columns->Add(L"CustomSize")->HTMLCaption = L"Custom-Size <img>pic1:16</img> Picture"; List1->EndUpdate(); |
392 |
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column
List1->BeginUpdate(); List1->MarkSearchColumn = false; Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam()); var_ConditionalFormat->Bold = true; var_ConditionalFormat->ForeColor = RGB(255,0,0); var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1); List1->Columns->Add(L"C1"); Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"C2"); var_Column->HeaderBold = true; var_Column->HTMLCaption = L"<fgcolor=FF0000>C2"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->set_Caption(var_Items->Add(TVariant(10)),TVariant(1),TVariant(11)); var_Items->set_Caption(var_Items->Add(TVariant(12)),TVariant(1),TVariant(13)); List1->EndUpdate(); |
391 |
Is it possible to limit the height of item while resizing the row
// AddItem event - Occurs after a new Item is inserted to Items collection. void __fastcall TForm1::List1AddItem(TObject *Sender,long Item) { List1->Items->set_ItemMinHeight(Item,18); List1->Items->set_ItemMaxHeight(Item,72); } List1->BeginUpdate(); List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeItem; List1->ScrollBySingleLine = false; List1->BackColorAlternate = RGB(240,240,240); List1->Columns->Add(L"Names"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Mantel")); var_Items->Add(TVariant("Mechanik")); var_Items->Add(TVariant("Motor")); var_Items->Add(TVariant("Murks")); var_Items->Add(TVariant("Märchen")); var_Items->Add(TVariant("Möhren")); var_Items->Add(TVariant("Mühle")); List1->Columns->get_Item(TVariant(0))->SortOrder = Exlistlib_tlb::SortOrderEnum::SortAscending; List1->EndUpdate(); |
390 |
Can I specify un-sortable items so they keep their position once the user sorts the columns
|
389 |
The item is not getting selected when clicking the cell's checkbox. What should I do
|
388 |
Does your control supports multiple lines tooltip
|
387 |
How can I prevent highlighting the column from the cursor - point
List1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJ") + "gEgI=")); List1->Background[Exlistlib_tlb::BackgroundPartEnum::exCursorHoverColumn] = 0x1000000; List1->Columns->Add(L"S")->Width = 32; List1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); List1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); List1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); List1->Columns->Add(L"E1")->Width = 32; List1->Columns->Add(L"E2")->Width = 32; List1->Columns->Add(L"E3")->Width = 32; List1->Columns->Add(L"E4")->Width = 32; |
386 |
Is there any option to show the tooltip programmatically
|
385 |
Is it possible to prevent covering the colors by selected rows
List1->SelBackMode = Exlistlib_tlb::BackModeEnum::exTransparent; List1->BackColorAlternate = RGB(240,240,240); List1->Columns->Add(L"Column"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("Item 2")); var_Items->Add(TVariant("Item 3")); var_Items->Add(TVariant("Item 4")); var_Items->Add(TVariant("Item 5")); |
384 |
Can I use PNG images to display pictures in the control
|
383 |
Does your control support conditional format and computed fields
List1->BeginUpdate(); List1->MarkSearchColumn = false; Exlistlib_tlb::IConditionalFormatsPtr var_ConditionalFormats = List1->ConditionalFormats; Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%1 >4",TNoParam()); var_ConditionalFormat->Bold = true; var_ConditionalFormat->StrikeOut = true; var_ConditionalFormat->ForeColor = RGB(255,0,0); var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1); Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%2 > 4",TNoParam()); var_ConditionalFormat1->Bold = true; var_ConditionalFormat1->StrikeOut = true; var_ConditionalFormat1->ForeColor = RGB(255,0,0); var_ConditionalFormat1->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x2); Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat2 = var_ConditionalFormats->Add(L"%3 > 4",TNoParam()); var_ConditionalFormat2->Bold = true; var_ConditionalFormat2->StrikeOut = true; var_ConditionalFormat2->ForeColor = RGB(255,0,0); var_ConditionalFormat2->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x3); Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name"); Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"A"); var_Column->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric; var_Column->AllowSizing = false; var_Column->Width = 36; var_Column->FormatColumn = L"len(value) ? value + ' +'"; Exlistlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"B"); var_Column1->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric; var_Column1->AllowSizing = false; var_Column1->Width = 36; var_Column1->FormatColumn = L"len(value) ? value + ' +'"; Exlistlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"C"); var_Column2->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric; var_Column2->AllowSizing = false; var_Column2->Width = 36; var_Column2->FormatColumn = L"len(value) ? value + ' ='"; Exlistlib_tlb::IColumnPtr var_Column3 = var_Columns->Add(L"A+B+C"); var_Column3->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric; var_Column3->AllowSizing = false; var_Column3->Width = 64; var_Column3->ComputedField = L"%1+%2+%3"; var_Column3->FormatColumn = L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"; var_Column3->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1)); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h1 = var_Items->Add(TVariant("Item 1")); var_Items->set_Caption(h1,TVariant(1),TVariant(7)); var_Items->set_Caption(h1,TVariant(2),TVariant(3)); var_Items->set_Caption(h1,TVariant(3),TVariant(1)); h1 = var_Items->Add(TVariant("Item 2")); var_Items->set_Caption(h1,TVariant(1),TVariant(2)); var_Items->set_Caption(h1,TVariant(2),TVariant(5)); var_Items->set_Caption(h1,TVariant(3),TVariant(12)); h1 = var_Items->Add(TVariant("Item 3")); var_Items->set_Caption(h1,TVariant(1),TVariant(2)); var_Items->set_Caption(h1,TVariant(2),TVariant(2)); var_Items->set_Caption(h1,TVariant(3),TVariant(4)); h1 = var_Items->Add(TVariant("Item 4")); var_Items->set_Caption(h1,TVariant(1),TVariant(2)); var_Items->set_Caption(h1,TVariant(2),TVariant(9)); var_Items->set_Caption(h1,TVariant(3),TVariant(4)); List1->EndUpdate(); |
382 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
381 |
Can I display the cell's check box after the text
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Column"); var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true)); var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,check")); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->set_CellHasCheckBox(var_Items->Add(TVariant("Caption 1")),TVariant(0),true); var_Items->set_CellHasCheckBox(var_Items->Add(TVariant("Caption 2")),TVariant(0),true); |
380 |
Can I change the order of the parts in the cell, as checkbox after the text, and so on
|
379 |
Can I have an image displayed after the text. Can I get that effect without using HTML content
|
378 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
377 |
How can I change the foreground color for a particular column
|
376 |
How can I change the background color for a particular column
|
375 |
How can I display the column using currency format and enlarge the font for certain values
|
374 |
How can I highlight only parts of the cells
|
373 |
How can I get the number of occurrences of a specified string in the cell
List1->Columns->Add(L""); Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"occurrences"); var_Column->ComputedField = L"lower(%0) count 'o'"; var_Column->FormatColumn = L"'contains ' + value + ' of \\'o\\' chars'"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h = var_Items->Add(TVariant("Root")); var_Items->Add(TVariant("Child 1 oooof the root")); var_Items->Add(TVariant("Child 2")); var_Items->Add(TVariant("Child 3")); |
372 |
How can I display dates in my format
|
371 |
How can I display dates in short format
|
370 |
How can I display dates in long format
|
369 |
How can I display only the right part of the cell
List1->Columns->Add(L""); Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Right"); var_Column->ComputedField = L"%0 right 2"; var_Column->FormatColumn = L"'\"' + value + '\"'"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h = var_Items->Add(TVariant("Root")); var_Items->Add(TVariant("Child 1")); var_Items->Add(TVariant("Child 2")); var_Items->Add(TVariant("SChild 3")); |
368 |
How can I display only the left part of the cell
|
367 |
How can I display true or false instead 0 and -1
|
366 |
How can I display icons or images instead numbers
List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Icons"); var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1)); var_Column->FormatColumn = L"'The cell displays the icon <img>'+value+'</img> instead ' + value"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant(1)); var_Items->Add(TVariant(2)); var_Items->Add(TVariant(3)); |
365 |
How can I display the column using currency
|
364 |
Is is possible to use HTML tags to display in the filter caption
|
363 |
How can I find the number of items after filtering
|
362 |
How can I change the filter caption
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAll; List1->FilterBarPromptPattern = L"london robert"; List1->FilterBarCaption = L"<r>Found: ... "; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
361 |
While using the filter prompt is it is possible to use wild characters
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptPattern; List1->FilterBarPromptPattern = L"lon* seat*"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
360 |
How can I list all items that contains any of specified words, not necessary at the beggining
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny; List1->FilterBarPromptPattern = L"london davolio"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
359 |
How can I list all items that contains any of specified words, not strings
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny; List1->FilterBarPromptPattern = L"london nancy"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
358 |
How can I list all items that contains all specified words, not strings
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAll; List1->FilterBarPromptPattern = L"london robert"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
357 |
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptCaseSensitive | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny; List1->FilterBarPromptPattern = L"Anne"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
356 |
Is it possible to list only items that ends with any of specified strings
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptEndWith; List1->set_FilterBarPromptColumns(TVariant("0")); List1->FilterBarPromptPattern = L"Fuller"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
355 |
Is it possible to list only items that ends with any of specified strings
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptEndWith; List1->set_FilterBarPromptColumns(TVariant("0")); List1->FilterBarPromptPattern = L"Fuller"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
354 |
Is it possible to list only items that starts with any of specified strings
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWith; List1->set_FilterBarPromptColumns(TVariant("0")); List1->FilterBarPromptPattern = L"An M"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
353 |
Is it possible to list only items that starts with specified string
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWith; List1->set_FilterBarPromptColumns(TVariant("0")); List1->FilterBarPromptPattern = L"A"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h0 = var_Items->Add(TVariant("Nancy Davolio")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Andrew Fuller")); var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales")); var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma")); var_Items->set_SelectItem(h0,true); h0 = var_Items->Add(TVariant("Janet Leverling")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland")); h0 = var_Items->Add(TVariant("Margaret Peacock")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond")); h0 = var_Items->Add(TVariant("Steven Buchanan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Michael Suyama")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Robert King")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); h0 = var_Items->Add(TVariant("Laura Callahan")); var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator")); var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle")); h0 = var_Items->Add(TVariant("Anne Dodsworth")); var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative")); var_Items->set_Caption(h0,TVariant(2),TVariant("London")); List1->EndUpdate(); |
352 |
How can I specify that the list should include any of the seqeunces in the pattern
|
351 |
How can I specify that all sequences in the filter pattern must be included in the list
|
350 |
How do I change at runtime the filter prompt
|
349 |
How do I specify to filter only a single column when using the filter prompt
|
348 |
How do I change the prompt or the caption being displayed in the filter bar
List1->BeginUpdate(); List1->ColumnAutoResize = true; List1->ContinueColumnScroll = false; List1->MarkSearchColumn = false; List1->SearchColumnIndex = 1; List1->FilterBarPromptVisible = true; List1->FilterBarPrompt = L"changed"; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Name")->Width = 96; var_Columns->Add(L"Title")->Width = 96; var_Columns->Add(L"City"); List1->EndUpdate(); |
347 |
How do I enable the filter prompt feature
|
346 |
Is it possible to change the style for the vertical or horizontal grid lines, in the list area
|
345 |
Is it possible to change the style for the grid lines, for instance to be solid not dotted
|
344 |
How can I filter programatically using more columns
List1->BeginUpdate(); List1->MarkSearchColumn = false; Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns; var_Columns->Add(L"Car"); var_Columns->Add(L"Equipment"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("Air Bag")); var_Items->set_Caption(var_Items->Add(TVariant("Toyota")),TVariant(1),TVariant("Air Bag,Air condition")); var_Items->set_Caption(var_Items->Add(TVariant("Ford")),TVariant(1),TVariant("Air condition")); var_Items->set_Caption(var_Items->Add(TVariant("Nissan")),TVariant(1),TVariant("Air Bag,ABS,ESP")); var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("Air Bag, ABS,ESP")); var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("ABS,ESP")); Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->get_Item(TVariant("Car")); var_Column->FilterType = Exlistlib_tlb::FilterTypeEnum::exFilter; var_Column->Filter = L"Mazda"; Exlistlib_tlb::IColumnPtr var_Column1 = List1->Columns->get_Item(TVariant("Equipment")); var_Column1->FilterType = Exlistlib_tlb::FilterTypeEnum::exPattern; var_Column1->Filter = L"*ABS*|*ESP*"; List1->ApplyFilter(); List1->EndUpdate(); |
343 |
How do I find an item based on my extra data
|
342 |
How do I print the control's content
List1->BeginUpdate(); List1->Columns->Add(L"Number"); List1->Columns->Add(L"Currency")->ComputedField = L"len(%0) ? currency(dbl(%0)) : ''"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("1.23")); var_Items->Add(TVariant("2.34")); var_Items->Add(TVariant("0")); var_Items->set_ItemBackColor(var_Items->Add(TNoParam()),RGB(255,128,128)); var_Items->Add(TVariant("10000.99")); List1->EndUpdate(); /* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: ExPrint 1.0 Control Library TypeLib: ExPrint.dll to define the namespace: Exprintlib_tlb */ //#include "EXPRINTLIB_TLB.h" Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print"); var_Print->PrintExt = (IUnknown*)List1->DefaultDispatch; var_Print->Preview(); |
341 |
How can I display the currency only for not empty cells
List1->Columns->Add(L"Number"); List1->Columns->Add(L"Currency")->ComputedField = L"len(%0) ? currency(dbl(%0)) : ''"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("1.23")); var_Items->Add(TVariant("2.34")); var_Items->Add(TVariant("0")); var_Items->set_ItemBackColor(var_Items->Add(TNoParam()),RGB(255,128,128)); var_Items->Add(TVariant("10000.99")); |
340 |
Is there a function to display the number of days between two date including the number of hours
|
339 |
Is there a function to display the number of days between two date including the number of hours
|
338 |
How can I display the number of days between two dates
|
337 |
How can I get second part of the date
|
336 |
How can I get minute part of the date
|
335 |
How can I check the hour part only so I know it was afternoon
List1->ConditionalFormats->Add(L"hour(%0)>=12",TNoParam())->Bold = true; List1->Columns->Add(L"Date"); List1->Columns->Add(L"Hour")->ComputedField = L"hour(%0)"; Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double())); var_Items->Add(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double())); var_Items->Add(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double())); var_Items->Add(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double())); |
334 |
What about a function to get the day in the week, or days since Sunday
|
333 |
Is there any function to get the day of the year or number of days since January 1st
|
332 |
How can I display only the day of the date
|
331 |
How can I display only the month of the date
|
330 |
How can I get only the year part from a date expression
|
329 |
Can I convert the expression to date
|
328 |
Can I convert the expression to a number, double or float
|
327 |
How can I display dates in long format
|
326 |
How can I display dates in short format
|
325 |
How can I display the time only of a date expression
|
324 |
Is there any function to display currencies, or money formatted as in the control panel
|
323 |
How can I convert the expression to a string so I can look into the date string expression for month's name
|
322 |
Can I display the absolute value or positive part of the number
|
321 |
Is there any function to get largest number with no fraction part that is not greater than the value
|
320 |
Is there any function to round the values base on the .5 value
|
319 |
How can I get or display the integer part of the cell
|
318 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
|
317 |
Is there any option to display cells in uppercase
|
316 |
Is there any option to display cells in lowercase
|
315 |
How can I mark the cells that has a specified type, ie strings only
|
314 |
How can I bold the items that contains data or those who displays empty strings
List1->ConditionalFormats->Add(L"not len(%1)=0",TNoParam())->Bold = true; List1->Columns->Add(L"C1"); List1->Columns->Add(L"C2"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; long h = var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("Item 2")); long hC = var_Items->Add(TVariant("Item 3")); var_Items->set_Caption(hC,TVariant(1),TVariant("1")); var_Items->Add(TVariant("Item 3")); |
313 |
Can I change the background color for items or cells that contains a specified string
List1->ConditionalFormats->Add(L"%0 contains 'hi'",TNoParam())->BackColor = RGB(255,0,0); List1->Columns->Add(L""); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("Item 2")); var_Items->Add(TVariant("Item 3")); var_Items->Add(TVariant("Item 4 - child")); |
312 |
Is there any option to change the fore color for cells or items that ends with a specified string
List1->ConditionalFormats->Add(L"%0 endwith '22'",TNoParam())->ForeColor = RGB(255,0,0); List1->Columns->Add(L""); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("Item 2")); var_Items->Add(TVariant("Item 1.22")); var_Items->Add(TVariant("Item 2.22")); |
311 |
How can I highlight the cells or items that starts with a specified string
List1->ConditionalFormats->Add(L"%0 startwith 'C'",TNoParam())->Underline = true; List1->Columns->Add(L""); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("CItem 2")); var_Items->Add(TVariant("Item 3")); var_Items->Add(TVariant("Item 4")); |
310 |
How can I change the foreground color for a particular column
|
309 |
How can I change the background color for a particular column
|
308 |
How can I display the column's header using multiple lines
List1->HeaderHeight = 128; List1->HeaderSingleLine = false; List1->Columns->Add(L"This is just a column that should break the header.")->Width = 32; List1->Columns->Add(L"This is just another column that should break the header."); |
307 |
How can I align the text/caption on the scroll bar
List1->ScrollPartCaption[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exLowerBackPart] = L"left"; List1->ScrollPartCaptionAlignment[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exLowerBackPart] = Exlistlib_tlb::AlignmentEnum::LeftAlignment; List1->ScrollPartCaption[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exUpperBackPart] = L"right"; List1->ScrollPartCaptionAlignment[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exUpperBackPart] = Exlistlib_tlb::AlignmentEnum::RightAlignment; List1->ColumnAutoResize = false; List1->Columns->Add(L"1"); List1->Columns->Add(L"2"); List1->Columns->Add(L"3"); List1->Columns->Add(L"4"); List1->Columns->Add(L"5"); List1->Columns->Add(L"6"); |
306 |
How do I select the next row/item
List1->Columns->Add(L"Column"); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->Add(TVariant("Item 1")); var_Items->Add(TVariant("Item 2")); var_Items->Add(TVariant("Item 3")); var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FocusItem),true); |
305 |
How do I enable resizing ( changing the height ) the items at runtime
List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeItem; List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exHLines; List1->ScrollBySingleLine = true; List1->Columns->Add(L"Column"); List1->Items->Add(TVariant("Item 1")); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->set_ItemHeight(var_Items->Add(TVariant("Item 2")),48); List1->Items->Add(TVariant("Item 3")); List1->Items->Add(TVariant("Item 4")); |
304 |
How do I enable resizing all the items at runtime
List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeAllItems; List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exHLines; List1->Columns->Add(L"Column"); List1->Items->Add(TVariant("Item 1")); Exlistlib_tlb::IItemsPtr var_Items = List1->Items; var_Items->set_ItemHeight(var_Items->Add(TVariant("Item 2")),48); List1->Items->Add(TVariant("Item 3")); |
303 |
How can I remove the filter
|
302 |
How do I change the control's border, using your EBN files
List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); List1->Appearance = Exlistlib_tlb::AppearanceEnum(0x1000000); |
301 |
Can I change the style for break or divider line
|